// @ts-ignore
/* eslint-disable */
import { request } from "../../utils/request";


/**获取 宣传刊播 组织 列表 POST */
export async function treeOrganization(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<PropagateData.Organization[]>>(
        '/publicity/organization/tree',
        {
            method: 'POST',
            data: options || {},
        },
    );
}

/**获取 宣传刊播 渠道 列表 POST */
export async function listChannel(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<PropagateData.Channel[]>>('/publicity/channel/list', {
        method: 'POST',
        data: options || {},
    });
}

/**获取 宣传刊播 来源类型 列表 POST */
export async function listSourceType(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<PropagateData.SourceType[]>>(
        '/publicity/source/type/list',
        {
            method: 'POST',
            data: options || {},
        },
    );
}

/**获取 宣传刊播 来源 列表 POST */
export async function treeSource(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<PropagateData.SourceTree[]>>('/publicity/source/tree', {
        method: 'POST',
        data: options || {},
    });
}

/**保存 宣传刊播 记录 POST */
export async function saveRecord(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<PropagateData.SourceTree[]>>('/publicity/record/save', {
        method: 'POST',
        data: options || {},
    });
}


/**获取 宣传刊播 分页 POST */
export async function pageRecord(options?: { [key: string]: any }) {
    return request<BaseResponseBean.responsePage<PropagateData.Record[]>>('/publicity/record/page', {
        method: 'POST',
        data: options || {},
    });
}

/**获取 宣传刊播 详情 POST */
export async function getRecordDetails(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<PropagateData.Record>>(
        '/publicity/record/details',
        {
            method: 'POST',
            data: options || {},
        },
    );
}


/**获取 宣传刊播 提交 分页 POST */
export async function pageRecordSubmit(options?: { [key: string]: any }) {
    return request<BaseResponseBean.responsePage<PropagateData.Record[]>>(
        '/publicity/record/submit/page',
        {
            method: 'POST',
            data: options || {},
        },
    );
}

/**获取 宣传刊播 详情 POST */
export async function getRecordSubmitDetails(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<PropagateData.Record>>(
        '/publicity/record/submit/details',
        {
            method: 'POST',
            data: options || {},
        },
    );
}


/**收录 宣传刊播 记录 POST */
export async function employRecord(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<null>>('/publicity/record/employ', {
        method: 'POST',
        data: options || {},
    });
}

/**收录 宣传刊播 记录 列表 POST */
export async function employRecordList(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<null>>('/publicity/record/employ/list', {
        method: 'POST',
        data: options || {},
    });
}

/**撤销 宣传刊播 记录 POST */
export async function cancelRecord(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<null>>('/publicity/record/cancel', {
        method: 'POST',
        data: options || {},
    });
}

/**重新发布 宣传刊播 记录 POST */
export async function reissueRecord(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<null>>('/publicity/record/reissue', {
        method: 'POST',
        data: options || {},
    });
}

/**重新发布 宣传刊播 编辑记录 POST */
export async function reissueEditRecord(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<null>>('/publicity/record/reissue/edit', {
        method: 'POST',
        data: options || {},
    });
}
